package com.ruoyi.web.ydz.service;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.ydz.domain.Reply;
import org.apache.commons.math3.analysis.function.Abs;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 帖子回复Service接口
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
public interface IReplyService 
{
    /**
     * 查询帖子回复
     * 
     * @param id 帖子回复主键
     * @return 帖子回复
     */
    public Reply selectReplyById(Long id);

    /**
     * 查询帖子回复列表
     * 
     * @param reply 帖子回复
     * @return 帖子回复集合
     */
    public List<Reply> selectReplyList(Reply reply);

    /**
     * 新增帖子回复
     * 
     * @param reply 帖子回复
     * @return 结果
     */
    public int insertReply(Reply reply, HttpServletRequest request);

    /**
     * 修改帖子回复
     * 
     * @param reply 帖子回复
     * @return 结果
     */
    public int updateReply(Reply reply);

    public int editStatus(Reply reply);

    /**
     * 批量删除帖子回复
     * 
     * @param ids 需要删除的帖子回复主键集合
     * @return 结果
     */
    public int deleteReplyByIds(Long[] ids);

    /**
     * 删除帖子回复信息
     * 
     * @param id 帖子回复主键
     * @return 结果
     */
    public int deleteReplyById(Long id);

    public Long getReplyCount(Long invitationId);

    public AjaxResult getAnyReply(Long id);

    public AjaxResult getForUsReply();

    public AjaxResult getForUsLike();

    public AjaxResult getToOtherLike();

    public AjaxResult getToOtherReply();
}
